package com.gy.smartmanagement.process.processdevice.adapter;

import android.content.Context;

import com.gy.smartmanagement.R;
import com.gy.smartmanagement.base.adapter.BaseRecyclerAdapter;
import com.gy.smartmanagement.process.processdevice.mvp.FixBean;

import java.util.List;

import androidx.annotation.NonNull;
import tl.com.easy_recycleview_library.BaseRecyclerViewHolder;

public class FixAdapter extends BaseRecyclerAdapter<FixBean> {

  public FixAdapter(Context context, @NonNull List<FixBean> listData, int layoutID) {
    super(context, listData, layoutID);
  }

  @Override
  protected void bindDataToView(BaseRecyclerViewHolder holder, FixBean item, int position) {
    holder.setText(R.id.fix_number_tv,item.getNumber());
    holder.setText(R.id.fix_name_tv,item.getName());
    holder.setText(R.id.fix_address_tv,item.getPosition());
    holder.setText(R.id.fix_person_tv,item.getPersion());
    holder.setText(R.id.fix_time,item.getTime());
  }
}
